import request from '@/utils/request'

// 查询关键人政策列表
export function listMarketing(query) {
  return request({
    url: '/bussiness/keyMan/marketing/page',
    method: 'get',
    params: query
  })
}

// 查询关键人政策详细
export function getMarketing(id) {
  return request({
    url: '/bussiness/keyMan/marketing/' + id,
    method: 'get'
  })
}

// 新增关键人政策
export function addMarketing(data) {
  return request({
    url: '/bussiness/keyMan/marketing',
    method: 'post',
    data: data
  })
}

// 修改关键人政策
export function updateMarketing(data) {
  return request({
    url: '/bussiness/keyMan/marketing',
    method: 'put',
    data: data
  })
}

// 删除关键人政策
export function delMarketing(id) {
  return request({
    url: '/bussiness/keyMan/marketing/' + id,
    method: 'delete'
  })
}

